#ifndef _H_TEXTFIELD
#define _H_TEXTFIELD

#include "abstractTextInput.h"
#include "font.h"
#include "color.h"
#include "styleSheet.h"

#define TF_DFT_TEXT_COLOR  new color(COLOR_BLACK)
#define TF_DFT_BKG_COLOR   new color(COLOR_WHITE)

class textField: public abstractTextInput{

    protected:
        font* TFfont;

        RECT margin;

        int checkClick;
        int lastCursorPos;
        int rasterOffset;

    public:
        textField();
        textField(window*);
        virtual ~textField();

        virtual void setFont(font*);
        virtual void setMargin(int=2,int=2,int=2,int=2);

        virtual string getContent();

        virtual void mouseClickEvent(int);

        virtual void display();
        virtual unsigned char eventExec(unsigned char);

};

#endif
